package com.emm.yixun.common.model.enums;

import org.apache.commons.lang.StringUtils;

public enum RoomColorEnum {
	
/*	ROOM_COLOR_1("1","#00FF01"),
	ROOM_COLOR_2("2","#A8E7FF"),
	ROOM_COLOR_3("3","#FFFF00"),
	ROOM_COLOR_4("4","#FB7909"),
	ROOM_COLOR_5("5","#FF0000"),
	ROOM_COLOR_6("6","#696969"),
	ROOM_COLOR_7("7","#008B00")*/
	
	ROOM_COLOR_1("1","#fcfcfc"),
	ROOM_COLOR_2("2","#A8E7FF"),
	ROOM_COLOR_3("3","#00ff00"),
	ROOM_COLOR_4("4","#ff0000"),
	ROOM_COLOR_5("5","#cd00ff"),
	ROOM_COLOR_6("6","#d3dbe7"),
	ROOM_COLOR_7("7","#818181")
	;
	
	

	private RoomColorEnum(String no, String name) {
		this.no = no;
		this.name = name;
	}

	private String no;
	
	private String name;

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public static RoomColorEnum getByNo(String no) {
		if(StringUtils.isBlank(no)){
			return null;
		}
		for (RoomColorEnum menum : values()) {
			if (menum.getNo().equals(no)) {
				return menum;
			}
		}
		return null;
	}
	
}
